﻿namespace KingerRobot.MexicoSailunWMS.Spi;

public interface ICuringSpareManage
{
    List<CuringSpareBeans> QueryCuringSpare();

    int UpdateSpareById(UpdateSpareParam param, long userId, string userName, string clientHost);
}

public class CuringSpareBeans
{
    /// <summary>
    /// 主键
    /// </summary>
    public long? Id { get; set; }

    /// <summary>
    /// 硫化机编号
    /// </summary>
    public string CuringCode { get; set; }

    /// <summary>
    /// 硫化机名称
    /// </summary>
    public string CuringName { get; set; }

    /// <summary>
    /// 喷涂数量
    /// </summary>
    public int? SpareNum { get; set; }

    /// <summary>
    /// 当前喷涂数量
    /// </summary>
    public int? SpareCurrentNum { get; set; }

    /// <summary>
    /// 是否可用
    /// </summary>
    public string UseFlag { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; }


}

public class UpdateSpareParam
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long? Id { get; set; }

    /// <summary>
    /// 喷涂数量 大于0 的整数 
    /// </summary>
    public int? SpareNum { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; }
}
